package com.example.guethe.fireanalysisapp.data.net;

import cn.droidlover.xdroidmvp.net.XApi;

/**
 * Created by 何建钦 on 2018/2/2.
 */

public class Api {
    public static final String API_BASE_URL= "http://118.89.50.76:8887/";

    private static MyService myService;

    public static MyService getBaseService () {
        if (myService == null) {
            synchronized (Api.class) {
                if (myService == null) {
                    myService = XApi.getInstance().getRetrofit(API_BASE_URL,true).create(MyService.class);
                }
            }
        }
        return myService;
    }
}
